﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace boat
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DrawAxis();
           
        }

        private void DrawAxis()
        {
            Graphics g = pictureBox1.CreateGraphics();
            //drawing work axis
            g.DrawLine(new Pen(Color.Red, 1), new Point(0, 0), new Point(1170, 0));
            
            //line1 
            g.DrawLine(new Pen(Color.Blue, 2), new Point(35, 10), new Point(472 + 35, 10));
            g.DrawLine(new Pen(Color.Blue), new Point(35, 0), new Point(35, 10));
            g.DrawLine(new Pen(Color.Blue), new Point(472 + 35, 0), new Point(472 + 35, 10));

            //line2
            g.DrawLine(new Pen(Color.Blue, 2), new Point(652, 10), new Point(652 + 244, 10));
            g.DrawLine(new Pen(Color.Blue), new Point(652, 0), new Point(652, 10));
            g.DrawLine(new Pen(Color.Blue), new Point(652 + 244, 0), new Point(652 + 244, 10));

            //line3
            g.DrawLine(new Pen(Color.Green, 2), new Point(812, 5), new Point(812 + 344, 5));
            g.DrawLine(new Pen(Color.Green), new Point(812, 0), new Point(812, 10));
            g.DrawLine(new Pen(Color.Green), new Point(812 + 344, 0), new Point(812 + 344, 10));

            //drawing time axis
            g.DrawLine(new Pen(Color.Red), new Point(0, 0), new Point(0, 1000));
        }

        private void ArrageBoats()
        { 
            int BoatsNum = 50;
            Boat[] boats = Utils.RandomGetBoats(BoatsNum);

            for (int i = 0; i < BoatsNum; ++i)
            {
                //if(boats[i].Priority)
                if (boats[i].boatType.Equals(BoatType.A))
                { 
                
                }
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {
           
        }

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            
        }
    }
}
